package com.platform.wechat.controller;

import com.platform.wechat.common.JsonBean;
import com.platform.wechat.service.FirstVisitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author YP
 * @company ~~
 * @create 2021-07-31 12:54
 */
@RestController
@RequestMapping("firstVisit")
public class FirstVisitController {

    @Autowired
    private FirstVisitService firstVisitService;

    /**
    * @Description: 根据科室与医院id查询信息
    * @Param: [officeId, hospitalId]
    * @return: com.platform.wechat.common.JsonBean
    * @Author: YP
    * @Date: 2021/8/3
    * @Time: 15:14
    */
    @RequestMapping("getFirstVisit")
    public JsonBean getFirstVisit(Integer officeId, Integer hospitalId){
        JsonBean jsonBean = firstVisitService.selectFirstVisit(officeId, hospitalId);
        return jsonBean;
    }

}
